<h1>Listing checklist_items</h1>

<table>
  <tr>
    <th>Task text</th>
    <th>Item number</th>
    <th>Checklist</th>
  </tr>

<% @checklist_items.each do |checklist_item| %>
  <tr>
    <td><%=h checklist_item.task_text %></td>
    <td><%=h checklist_item.item_number %></td>
    <td><%=h checklist_item.checklist_id %></td>
    <td><%= link_to 'Show', checklist_item %></td>
    <td><%= link_to 'Edit', edit_checklist_item_path(checklist_item) %></td>
    <td><%= link_to 'Destroy', checklist_item, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New checklist_item', new_checklist_item_path %>